package com.slt.android.andfixdemo;

import android.app.Application;

import com.alipay.euler.andfix.patch.PatchManager;

/**
 * Created by dp on 2018/4/11.
 */

public class MyApplication extends Application {

    public static PatchManager mPatchManager;

    @Override
    public void onCreate() {
        super.onCreate();
        //1）初始化阿里热修复框架PatchManager
        mPatchManager = new PatchManager(this);
        mPatchManager.init(AppInfoUtils.getVersionCode(this) + "");
        //2）load patch
        mPatchManager.loadPatch();
    }
}
